package com.icehand.payment.api.v1.service;

import com.icehand.common.model.BaseUser;
import com.icehand.common.result.BizResult;
import com.icehand.payment.model.PayRequest;

import javax.servlet.http.HttpServletRequest;

/**
 * @author icehand
 */
public interface PayServiceV1 {
    /**
     * 支付信息
     */
    BizResult pay(PayRequest payRequest, BaseUser user);

    /**
     * 支付回调
     * @param channelId 渠道ID
     * @param appId 应用编号
     * @param request request
     * @return String
     */
    String payNotify(Integer channelId, Integer appId, HttpServletRequest request);
}
